# base
:::tip
In production environment, you can set CDN path via `base`  
publicPath root path can refer to webpack, business mode defaults to `auto`   
For html part, publicPath defaults to undefined, can set full domain or subdirectory adaptation, or set Public separately in html
:::

+ Type: `boolean | string | 'auto'`
+ Default: `'auto'

```ts title="emp-config.js"
import {defineConfig} from '@empjs/cli'
export default defineConfig(store => {
  return {
    base:'/'
  }
})
```

## Production and Development Environment Usage Examples
```ts title="emp-config.js"
import {defineConfig} from '@empjs/cli'
export default defineConfig(store => {
  return {
    base:store.isDev?'https://dev.xxx.com/':'https://www.xxx.com/'
  }
})
```